package com.ioc;

import com.ioc.annotation.ComponentScan;
import com.ioc.annotation.Configuration;
import com.ioc.context.MicroContext;
import com.ioc.controller.IocController;

@Configuration
@ComponentScan(basePackages = {"com.ioc.service","com.ioc.controller"})
public class Application {

  public static void main(String[] args) {
    // 初始化ioc
    MicroContext.init(Application.class,args);
    IocController iocController =(IocController) MicroContext.getBean(IocController.class);
    iocController.get();
  }

}
